package com.stockz.ui.swing.core.menu;

import java.awt.event.KeyEvent;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.stockz.ui.swing.widget.JMenu;

@Component  
public class NewMenu extends JMenu implements InitializingBean {
	private static final long serialVersionUID = 413915792276826187L;

	@Autowired
	private FileMenu fileMenu;
	
	public NewMenu() {
		super("New",KeyEvent.VK_N,"new.png");
	}
	
	@Override
	public void afterPropertiesSet() throws Exception {
		fileMenu.add(this);
	}
}
